home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / cpp_libs / answrbok / 6_11.lha / 6_11 / 6_11_eq.c < prev    next >
Text File  |  1993-08-08  |  392b  |  16 lines

  1. * Copyright (c) 1990 by AT&T Bell Telephone Laboratories, Incorporated. */
  2. * The C++ Answer Book */
  3. * Tony Hansen */
  4. * All rights reserved. */
  5. *
  6.    Compare two arbint's for equality
  7. /
  8. include <arbint.h>
  9.  
  10. nline int operator==(const arbint& a, const arbint& b)
  11.  
  12.    return (a.p->length == b.p->length) &&
  13. (memcmp((char*)a.p->value, (char*)b.p->value,
  14.     a.p->length * sizeof(ARB_type)) == 0);
  15.  
  16.